package vn.fpt.snake.entity;

import java.awt.Image;
import java.awt.Point;

import vn.fpt.snake.commons.Direction;

public class Snake {
	int x[];
	int y[];
	int dots;
	int score;
	Point startPoint;
	Image dot;
	Image head;
	Direction direct;
	int rotate;
	
	public int getRotate() {
		return rotate;
	}

	public void setRotate(int rotate) {
		this.rotate = rotate;
	}

	public Direction getDirect() {
		return direct;
	}

	public void setDirect(Direction direct) {
		this.direct = direct;
	}

	public Snake(int maxOfDots){
		x = new int[maxOfDots];
		y = new int[maxOfDots];
	}
	
	public int getX(int index){
		return x[index];
	}
	
	public void setX(int index, int value){
		x[index] = value;
	}
	
	public int getY(int index){
		return y[index];
	}
	
	public void setY(int index, int value){
		y[index] = value;
	}
	
	public int getDots() {
		return dots;
	}

	public void setDots(int dots) {
		this.dots = dots;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public Point getStartPoint() {
		return startPoint;
	}

	public void setStartPoint(Point startPoint) {
		this.startPoint = startPoint;
	}

	public Image getDot() {
		return dot;
	}

	public void setDot(Image dot) {
		this.dot = dot;
	}

	public Image getHead() {
		return head;
	}

	public void setHead(Image head) {
		this.head = head;
	}
	
	public int[] getX() {
		return x;
	}

	public void setX(int[] x) {
		this.x = x;
	}

	public int[] getY() {
		return y;
	}

	public void setY(int[] y) {
		this.y = y;
	}

}
